/**
 * About
 * 
 * 03/11/2013
 * 
 * Copyright GPL
 */
package com.jtmproject.activities;

import com.jtmproject.classes.FilesUtils;

import android.os.Bundle;
import android.app.Activity;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;


/**
 * This is an activity to show the Help to the application
 * @author Javier Tejedor
 */
public class About extends Activity {

	/* (non-Javadoc)
	 * @see android.app.Activity#onCreate(android.os.Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		
		TextView textAbout = (TextView) findViewById(R.id.text_about);
		String text = 
				FilesUtils.getFilesUtils().getTextAboutFile(this, R.raw.about);
		
		if(text != null){
			textAbout.setText(text);
			textAbout.setMovementMethod(new ScrollingMovementMethod());
		}
	}

}
